package java05;
import java.util.*;
public class SystemTest01 {
    public static void main(String[] args){
        //获取当前系统属性
        Properties properties = System.getProperties();
        System.out.println(properties);
        //获取所有系统属性的key(属性名)，返回Set对象
        Set<String>propertNames = properties.stringPropertyNames();
        for(String key : propertNames){//增强for
            //获取当前键key(属性名)所对应的值(属性值)
            String value = System.getProperty(key);
            System.out.println(key + "-------->" + value);
        }
    }
}
